// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/** 获统计列表  */
export async function getDetail(params: any) {
  return request('/api/v1/statistics/getDetail', {
    method: 'POST',
    data: params,
  });
}

//以下为日志功能
export async function delLogById(params: any) {
  return request('/api/v1/log/delById', {
    method: 'POST',
    params: params,
  });
}
export async function getLogById(params: any) {
  return request('/api/v1/log/getById', {
    method: 'GET',
    params: params,
  });
}
export async function getLogsList(params: any, data: any) {
  return request('/api/v1/log/getOperateLogList', {
    method: 'POST',
    params: params,
    data: data,
  });
}
export async function batchDeleteLogs(data: any) {
  return request('/api/v1/log/batchDelete', {
    method: 'POST',
    data: data,
  });
}

export async function countByCatName() {
  return request('/api/v1/statistics/countByCatName', {
    method: 'POST',
  });
}
export async function countByAuthor() {
  return request('/api/v1/statistics/countByAuthor', {
    method: 'POST',
  });
}
export async function countByGroup() {
  return request('/api/v1/statistics/countByGroup', {
    method: 'POST',
  });
}
export async function countByReviewer() {
  return request('/api/v1/statistics/countByReviewer', {
    method: 'POST',
  });
}
